/**
 * @filename:ClassInteractionCustomerAnswerServiceImpl ClassInteractionCustomerAnswer
 * @project constract  V1.0
 * Copyright(c) 2018 lin keqing Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.ClassInteractionCustomerAnswerMapper;
import com.znufe.exam.viewmodel.admin.classinteraction.ClassInteractionQASituationRequestVM;
import com.znufe.exam.viewmodel.admin.classinteraction.ClassInteractionQASituationResponseVM;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.ClassInteractionCustomerAnswer;
import com.znufe.exam.service.ClassInteractionCustomerAnswerService;

/**   
 *  
 * @Description:  课堂互动答题详情信息——SERVICEIMPL
 * @Author:       lin keqing   
 * @CreateDate:   ClassInteractionCustomerAnswer
 * @Version:      V1.0
 *    
 */
@Service
public class ClassInteractionCustomerAnswerServiceImpl extends BaseServiceImpl<ClassInteractionCustomerAnswer> implements ClassInteractionCustomerAnswerService {

	private final ClassInteractionCustomerAnswerMapper classInteractionCustomerAnswerMapper;

    @Autowired
    public ClassInteractionCustomerAnswerServiceImpl(ClassInteractionCustomerAnswerMapper classInteractionCustomerAnswerMapper) {
        super(classInteractionCustomerAnswerMapper);
        this.classInteractionCustomerAnswerMapper = classInteractionCustomerAnswerMapper;
    }


	//查询对象
	@Override
	public ClassInteractionCustomerAnswer selectByPrimaryKey(Integer id) {
		return classInteractionCustomerAnswerMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return classInteractionCustomerAnswerMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(ClassInteractionCustomerAnswer classInteractionCustomerAnswer) {
		return classInteractionCustomerAnswerMapper.insertSelective(classInteractionCustomerAnswer);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(ClassInteractionCustomerAnswer classInteractionCustomerAnswer) {
		return classInteractionCustomerAnswerMapper.updateByPrimaryKeySelective(classInteractionCustomerAnswer);
	}
	
	//查询集合
	@Override
	public List<ClassInteractionCustomerAnswer> queryClassInteractionCustomerAnswerList(ClassInteractionCustomerAnswer classInteractionCustomerAnswer) {
		return classInteractionCustomerAnswerMapper.queryClassInteractionCustomerAnswerList(classInteractionCustomerAnswer);
	}

	//查询某道题的答题情况
	public List<ClassInteractionQASituationResponseVM> selectClassInteractionQASituation(ClassInteractionQASituationRequestVM requestVM) {
        return classInteractionCustomerAnswerMapper.selectClassInteractionQASituation(requestVM);
    }

}